home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 June: Reference Library / Dev.CD Jun 95 / Dev.CD Jun 95.toast / What's New? / New System Software Extensions / QuickDraw 3D ß / Programming / Interfaces / QD3DUIView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-04  |  3.9 KB  |  142 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QD3DUIView.h                                             **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:                                                              **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1992-1995 Apple Computer, Inc.  All rights reserved.     **
  11.  **                                                                          **
  12.  **                                                                          **
  13.  *****************************************************************************/
  14. #if defined(ESCHER_VER_15) && ESCHER_VER_15
  15.  
  16. #ifndef UIView_h
  17. #define UIView_h
  18.  
  19. #if PRAGMA_ONCE
  20.     #pragma once
  21. #endif
  22.  
  23. #if defined(WINDOW_SYSTEM_MACINTOSH) && WINDOW_SYSTEM_MACINTOSH
  24.  
  25. #include <Quickdraw.h>
  26. #include <Windows.h>
  27. #include <FixMath.h>
  28. #include <graphics types.h>
  29.  
  30. #endif  /*  WINDOW_SYSTEM_MACINTOSH  */
  31.  
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif    /* __cplusplus */
  36.  
  37. /******************************************************************************
  38.  **                                                                             **
  39.  **                            User Interface View API                             **
  40.  **                                                                             **
  41.  *****************************************************************************/
  42.  
  43. EXPORT TQ3UIViewObject Q3UIView_New(
  44.     void);
  45.  
  46. EXPORT TQ3Status Q3UIView_SetScale(
  47.     TQ3UIViewObject                uiViewObject,
  48.     float                        scaleFactor);
  49.  
  50. EXPORT TQ3Status Q3UIView_SetScaleAtDistance(
  51.     TQ3UIViewObject                uiViewObject,
  52.     float                        distance);
  53.  
  54. EXPORT TQ3Status Q3UIView_GetScale(
  55.     TQ3UIViewObject                uiViewObject,
  56.     float                        *scaleFactor);
  57.  
  58. EXPORT TQ3Status Q3UIView_SetColorScheme(
  59.     TQ3UIViewObject                uiViewObject,
  60.     TQ3ColorSchemeObject            colorScheme);
  61.  
  62. EXPORT TQ3Status Q3UIView_GetColorScheme(
  63.     TQ3UIViewObject                uiViewObject,
  64.     TQ3ColorSchemeObject            *colorScheme);
  65.  
  66.  
  67. #if defined(WINDOW_SYSTEM_MACINTOSH) && WINDOW_SYSTEM_MACINTOSH
  68.  
  69. /******************************************************************************
  70.  **                                                                             **
  71.  **                                     Routines                                 **
  72.  **                                                                             **
  73.  *****************************************************************************/
  74.  
  75. EXPORT void Q3UIView_SetQDDisplay(
  76.     TQ3UIViewObject        uiViewObject,
  77.     WindowPtr            window,
  78.     const Rect            *bounds);
  79.  
  80. EXPORT void Q3UIView_SetQDGXDisplay(
  81.     TQ3UIViewObject        uiViewObject,
  82.     gxViewPort            viewPort,
  83.     gxShape                shape);
  84.  
  85.  
  86. #endif    /*  WINDOW_SYSTEM_MACINTOSH  */
  87.  
  88. /******************************************************************************
  89.  **                                                                             **
  90.  **                                Type Definitions                             **
  91.  **                                                                             **
  92.  *****************************************************************************/
  93.  
  94. typedef enum TQ3ColorSchemeAttributeSet{
  95.     kQ3ColorSchemeAttributeSetCursor,
  96.     kQ3ColorSchemeAttributeSetSparkle,
  97.     kQ3ColorSchemeAttributeSetHandle,
  98.     kQ3ColorSchemeAttributeSetStructure,
  99.     kQ3ColorSchemeAttributeSetRoomFloor1,
  100.     kQ3ColorSchemeAttributeSetRoomFloor2,
  101.     kQ3ColorSchemeAttributeSetRoomWall,
  102.     kQ3ColorSchemeAttributeSetRoomCeiling,
  103.     kQ3ColorSchemeAttributeSetConstraint,
  104.     kQ3ColorSchemeAttributeSetConstraint2,
  105.     kQ3ColorSchemeAttributeSetCOUNT
  106. } TQ3ColorSchemeAttributeSet;
  107.  
  108.  
  109. /******************************************************************************
  110.  **                                                                             **
  111.  **                                     Routines                                 **
  112.  **                                                                             **
  113.  *****************************************************************************/
  114.  
  115. EXPORT TQ3Status Q3ColorScheme_Next(
  116.     TQ3ColorSchemeObject        colorSchemeObject,
  117.     TQ3ColorSchemeObject        *nextColorScheme);
  118.  
  119. EXPORT TQ3Status Q3ColorScheme_GetInfo(
  120.     TQ3ColorSchemeObject        colorSchemeObject,
  121.     char                        *name,
  122.     unsigned long                nameLength);
  123.  
  124. EXPORT TQ3Status Q3ColorScheme_GetAttributeSet(
  125.     TQ3ColorSchemeObject        colorSchemeObject,
  126.     TQ3ColorSchemeAttributeSet    attributeSetIndex,
  127.     TQ3AttributeSet                *attributeSet);
  128.  
  129. EXPORT TQ3ColorSchemeObject Q3ColorScheme_New(
  130.     const char                    *name,
  131.     unsigned long                attributeSetCount,
  132.     TQ3AttributeSet                attributeSetArray[]);
  133.  
  134.  
  135. #ifdef __cplusplus
  136. }
  137. #endif    /* __cplusplus */
  138.  
  139. #endif  /*  UIView_h  */
  140.  
  141. #endif    /* ESCHER_VER_15 */
  142.